package cn.net.ecode.tools.ecodeplatformmaker.model;

import java.util.Map;

import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;

public class ListConnLabelProvider extends LabelProvider {
	@Override
	public String getText(Object element) {

		if (element instanceof Map)
			return (String) ((Map) element).get("account") + "@" + (String) ((Map) element).get("sid") + "_" + (String) ((Map) element).get("ip");
		else
			return super.getText(element);
	}

}
